package com.ktjiaoyu.crm;

import org.apache.shiro.crypto.hash.Md5Hash;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;

@SpringBootTest
@RunWith(SpringRunner.class)
public class Md5Tester {

    @Test
    public void getMd5HashToString(){
        //source:加密字符串
        //salt:盐
        //hashIterations:加密次数
        Md5Hash md5Hash = new Md5Hash("123456", "salt", 1);
        System.out.println(md5Hash.toString());
    }
}
